package com.cc.mall.dao;

import com.cc.mall.entity.OfflineOrderProductEntity;
import com.cc.mall.entity.ProductDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cc.mall.vo.CartItem;
import com.cc.mall.vo.Kucun;
import com.cc.mall.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2020-12-11 15:11:54
 */
@Mapper
public interface ProductDetailDao extends BaseMapper<ProductDetailEntity> {

    List<Long> checkProductOver(@Param("skuIds") Long[] skuIds);

    List<Kucun> getOnlineKucun();

    List<Kucun> getOfflineKucun();

    List<OrderVo> getOnlineOrder2(@Param("uid") Long uid, @Param("status") Integer status);

    List<OrderVo> getOfflineOrder2(@Param("uid") Long uid, @Param("status") Integer status);

    List<OrderVo> getOfflineOrderByCid2(@Param("uid") Long uid, @Param("status") Integer status);

    List<ProductDetailEntity> koukucun(@Param("orderId") Long orderId);

    void plgxKucun(@Param("offlineOrderProductEntities") List<OfflineOrderProductEntity> offlineOrderProductEntities);

    void koukuncun2(@Param("cartItemList") List<CartItem> cartItemList);
}
